JMJNIObjectToJRIRef
Converts a JNI-basedjobject
to a JRI-basedjref
.
jref JMJNIObjectToJRIRef ( JMSessionRef session, JNIEnv* env, jobject jniObject);
session
- The current session.
env
- The current
JNIEnv
data structure.jniObject
- The
jObject
to convert.- function result
- A pointer to the
jref
object.DISCUSSION
If you want to usejobject
object references with the Java Runtime Interface (JRI), you must convert them tojref
references usingJMJNIObjectToJRIRef
. Note that you must have a pointer to the currentJNIEnv
data structure before calling this function.SEE ALSO
TheJMGetCurrentEnv
function.